public abstract class Pokemon {
    private String name;
    private int HP;
    private boolean health=true;
    private boolean isOnRoom=true;

    public boolean isOnRoom() {
        return isOnRoom;
    }

    public void setOnRoom(boolean onRoom) {
        isOnRoom = onRoom;
    }

    public boolean isHealth() {
        return health;
    }

    public void setHealth(boolean health) {
        this.health = health;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getHP() {
        return this.HP;
    }

    public void setHP(int HP) {
        this.HP = HP;
    }

    public abstract void attack(Pokemon p);
    @Override
    public String toString() {
        return "Pokemon{" +
                "name='" + this.name + '\'' +
                '}';
    }
}
